<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
  <head>
  <base href="<%=basePath%>">
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="static/layui/css/layui.css"  media="all">
  <script type="text/javascript" src="static/layui/layui.js"></script>
  <script type="text/javascript">
        //一般直接写在一个js文件中
    layui.use(['layer', 'form'], function(){
        var layer = layui.layer
        ,form = layui.form();
    });
        
        function closeThis(){
        	var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        	parent.layer.close(index);
        }
        
        function closeSubmit(){
        	closeThis();
        }
  </script>
  <style type="text/css">
  html,body{
  	z-index: 11000;
  }
  </style>
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
          
<form class="layui-form" action="newsint/apprNews" method="post"  onsubmit="closeSubmit()">
    
    <div class="layui-form-item layui-form-text">
    <!-- 此处仅用做站位产生间距 -->
    <label class="layui-form-label"></label>
    <div class="layui-input-block">
    	<!-- 将id,和当前页数page(从父页面的success回调中设置)放入input方便回传 -->
      <input type="text" name="id" readonly value="${newsInt.id}" style="display:none" placeholder="ID">
      <input type="text" id="appr_page_num" name="page" readonly style="display:none" placeholder="ID">
    </div>
    </div>

    <div class="layui-form-item">
    <label class="layui-form-label">标题:</label>
    <div class="layui-input-block">
      <input type="text" name="title" readonly value="${newsInt.title}"  placeholder="标题" autocomplete="off" class="layui-input">
    </div>
  </div>

    <div class="layui-form-item">
    <label class="layui-form-label">来源:</label>
    <div class="layui-input-block">
      <input type="text" name="source" readonly value="${newsInt.title}" placeholder="来源" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">摘要:</label>
    <div class="layui-input-block">
      <textarea name="introduce" readonly placeholder="摘要" class="layui-textarea">${newsInt.introduce}</textarea>
    </div>
  </div>

    <div class="layui-form-item">
    <label class="layui-form-label">URL:</label>
    <div class="layui-input-block">
      <input type="text" name="URL" readonly value="${newsInt.URL}" placeholder="URL" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">提供时间:</label>
    <div class="layui-input-block">
      <input type="text" name="creationTime" readonly value="${newsInt.creationTime}" placeholder="提供时间" autocomplete="off" class="layui-input">
    </div>
  </div>


  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label"></label>
     <div class="layui-form-mid layui-word-aux" style='color:red'>请填写以下审核信息：</div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">类型:</label>
    <div class="layui-input-block">
      <select name="type" lay-verify="required">
        <option value=""></option>
        <option value="0">政治</option>
        <option value="1">经济</option>
        <option value="2">民生</option>
        <option value="3">军事</option>
        <option value="4">习俗</option>
        <option value="5">其他</option>
      </select>
    </div>
  </div>

  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">审批意见:</label>
    <div class="layui-input-block">
      <textarea name="approveRemark" placeholder="请输入内容（不超过200个字）" maxlength="200" class="layui-textarea"></textarea>
    </div>
  </div>

  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="button" onclick="closeThis()" class="layui-btn layui-btn-primary">取消</button>
    </div>
  </div>
</form>
</body>
</html>
